<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    /*Promise.resolve(val)
        val是一个值,那resolve方法返回的promise是成功状态的
        val是一个promise,那resolve方法返回的promise和val保持一致*/

    // var promise =  Promise.resolve(new Promise((resolve,reject)=>{reject("test")}))


    /*Promise.reject(val)
        val: 异常的描述 ; 肯定返回一个失败状态的promise
    */
    var promise2 = Promise.reject("123")
    console.log(promise2);


</script>

</html>